//-------------------------------------------------------------------
//	Copyright (c) 2010-2014  Zhirnov Andrey
//	This file is part of the "UX Standard Lib" project.
//	See copyright notice in "UX_STL_Core.h".
//-------------------------------------------------------------------
/*
	Overloaded operator new for placement new
*/

#ifndef _UXS_LIBC_OPERATOR_NEW_H
#define _UXS_LIBC_OPERATOR_NEW_H

#pragma once

#define __PLACEMENT_NEW_INLINE
#define __PLACEMENT_VEC_NEW_INLINE

inline void * operator new (size_t, void *ptr) noexcept
{
	return ptr;
}

inline void * operator new[] (size_t, void *ptr) noexcept
{
	return ptr;
}

inline void operator delete (void *, void *) noexcept
{
}

inline void operator delete[] (void *, void *) noexcept
{
}

#endif	// _UXS_LIBC_OPERATOR_NEW_H